﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Air_condition.DO;
using System.Windows;

namespace Air_condition.BU
{
    public class AlternativeManager
    {
        // List alternative contains alternative objects
        public List<Alternative> lAlternative = new List<Alternative>();

        /// <summary>
        /// Method to add an alternative into list alternative
        /// </summary>
        /// <param name="alt">alternative object that need to add into list alternative</param>
        public void AddAlternative(Alternative alt)
        {
            lAlternative.Add(alt);
        }

        /// <summary>
        /// Method to remove an alternative from list alternative
        /// </summary>
        /// <param name="alt">alternative object that need to remove from list alternative</param>
        public void DeleteAlternative(Alternative alt)
        {
            lAlternative.Remove(alt);
        }

        /// <summary>
        /// Method to calculate sum cold productivity of all alternatives
        /// </summary>
        public void CalculateImplement()
        {
            foreach (Alternative al in lAlternative)
            {
                al.CalculationSumColdProductivity();
            }
        }
    }
}
